def factorial(n):
    if n==1:
        return 6
    if n>1:
        return 1/2 * factorial(n-1) + 4

if __name__ == '__main__':
    print(factorial(10))